package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.TaskLog;

import java.util.List;

import vn.edu.ptithcm.pim.dao.TaskLogDao;
@SuppressWarnings({ "rawtypes" })
public class TaskLogService {
	private TaskLogDao taskLogDao;

	public TaskLogDao getTaskLogDao() {
		return taskLogDao;
	}

	public void setTaskLogDao(TaskLogDao taskLogDao) {
		this.taskLogDao = taskLogDao;
	}

	public void save(TaskLog taskLog) {
		try {
			taskLogDao.save(taskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public void saveOrUpdate(TaskLog taskLog) {
		try {
			taskLogDao.saveOrUpdate(taskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public void lock(TaskLog taskLog) {
		try {
			taskLogDao.lock(taskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public void delete(TaskLog TaskLog) {
		try {
			taskLogDao.delete(TaskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public TaskLog merge(TaskLog taskLog) {
		try {
			return (TaskLog) taskLogDao.merge(taskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public TaskLog findById(java.lang.Long id) {
		try {
			return (TaskLog) taskLogDao.findById(id);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public List findByExample(TaskLog taskLog) {
		try {
			return taskLogDao.findByExample(taskLog);
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public List getAll() {
		try {
			return taskLogDao.getAll();
		} catch (RuntimeException re) {
			throw re;
		}
	}

	public List getLogs(Long taskId) {
		return taskLogDao.getLogs(taskId);
	}
}
